﻿@model AgendaDoEstudante.Models.Agenda

@{
    ViewBag.Title = "Edit";
}

<h2>EDITAR</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Agenda</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Assunto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Assunto)
            @Html.ValidationMessageFor(model => model.Assunto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descricao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Prioridade)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Prioridade)
            @Html.ValidationMessageFor(model => model.Prioridade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Data)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Data)
            @Html.ValidationMessageFor(model => model.Data)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserId)
            @Html.ValidationMessageFor(model => model.UserId)
        </div>

        <p>
            <input type="submit" value="Salvar Alterações" />
        </p>
    </fieldset>
}

    <ul class="phrp">
        @Html.ActionLink("Voltar", "Index")
    </ul>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
